package game.tileMap.model.vo
{
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	/**
	 *地图上的物件 
	 * 
	 * 
	 */	
	public class MapObj extends EventDispatcher
	{
		public var id:int;
		public var picId:String;
		public var x:int;
		public var y:int;
		/**
		 *穿透 
		 */		
		public var through:Boolean=true;
		public var eventId:int
		//事件触发方式，（0：确定键、1：与角色触碰、2：与事件触碰、3：自动运行、4：随行处理）。 
		public var trigger:int;
		public function MapObj()
		{
			
		}
		
		/**
		 *是否在此坐标位置 
		 * @param x
		 * @param y
		 * @return 
		 * 
		 */		
		public function onPos(x:int, y:int):Boolean{
			return (this.x == x && this.y == y)
		}
		
		public function moveTo(x:int,y:int):void{
			this.x=x;
			this.y=y;
		}
		
		public function update():void{
			
		}
	}
}